<%@ page language="java" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@include file="/WEB-INF/jsp/include.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>
		欢迎
		<sec:authentication property="principal.username" />
	</h1>
	<hr>
	<!-- 
	<sec:authentication property="name" />
	<sec:authentication property="authorities" var="authorities"
		scope="page" />
	<c:forEach items="${authorities}" var="authority">
		${authority.authority}
	</c:forEach>  -->
	<c:forEach items="${userRoleList}" var="ur">
		<ul>
			<li><font color="red" size="4px">${ur.role.discription}菜单</font></li>
		</ul>

		<c:forEach items="${ur.role.roleResource}" var="roleResource">
			<li>${roleResource.resource.discription}</li>
			<c:forEach items="${roleResource.resource.children}" var="children">
				<a href="${children.no}">${children.discription}</a>
				<br />
			</c:forEach>
		</c:forEach>

	</c:forEach>
	<p>
		<a href="<c:url value="/j_spring_security_logout"/>">注销</a> <font
			color="red">(同时去除记住我)</font>
</body>
</html>